<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="步骤1：（可选）查询Kubernetes集群的节点标签">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="kubernetes_CSI_00010.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="30-OceanProtect 备份一体机 1.5.0-1.6.0 帮助中心">
  <meta name="DC.Publisher" content="20240320">
  <meta name="prodname" content="csbs">
  <meta name="documenttype" content="usermanual">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="kubernetes_CSI_00010_1">
  <meta name="DC.Language" content="zh-cn">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>步骤1：（可选）查询Kubernetes集群的节点标签</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="kubernetes_CSI_00010_1"></a><a name="kubernetes_CSI_00010_1"></a>
  <h1 class="topictitle1">步骤1：（可选）查询Kubernetes集群的节点标签</h1>
  <div>
   <p>后续注册Kubernetes集群时，如果需要配置节点选择器，可执行本节操作，通过命令的方式获取节点标签。</p>
   <ol>
    <li><span>通过后台登录Kubernetes集群。</span></li>
    <li><span>执行<strong>kubectl get node --show-labels</strong>命令。可通过“LABELS”参数所在列查看节点的标签。</span><p></p><p><span><img src="zh-cn_image_0000001934933397.png"></span></p>
     <div class="note">
      <img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span>
      <div class="notebody">
       <p>当使用openshift，需要执行<strong>oc get node --show-labels</strong>命令查看节点标签。</p>
      </div>
     </div> <p></p></li>
   </ol>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>父主题：</strong> <a href="kubernetes_CSI_00010.html">备份命名空间/数据集</a>
    </div>
   </div>
  </div>
 </body>
</html>